from .models import *
from rest_framework import serializers

class BossSers(serializers.ModelSerializer):
    class Meta:
        model = BossModel
        fields = '__all__'

class UserSers(serializers.ModelSerializer):
    class Meta:
        model = UserModel
        fields = '__all__'

class EatSers(serializers.ModelSerializer):
    class Meta:
        model = EatModel
        fields = '__all__'

class EatListSers(serializers.ModelSerializer):
    user = UserSers()
    class Meta:
        model = EatModel
        fields = '__all__'

class TimeSers(serializers.ModelSerializer):
    user = UserSers()
    boss = BossSers()
    class Meta:
        model = TimeModel
        fields = '__all__'

class TimeListSers(serializers.ModelSerializer):
    user = UserSers()
    boss = BossSers()
    class Meta:
        model = TimeModel
        fields = '__all__'